import React from 'react';
import ReactDom from 'react-dom';
import index from './pages/index.jsx';
import Me from './pages/me.jsx';
import HealthList from './pages/HealthList.jsx'
import DoctorList from './pages/DoctorList.jsx'
import SickHistory from './pages/SickHistory.jsx'
import FeeRecord from './pages/FeeRecord.jsx'
import VisitRecord from './pages/VisitRecord.jsx'
import IdentityConfirm from './pages/identityconfirm.jsx'
import Login from './pages/Login.jsx'
import Register from './pages/Register.jsx'
import DoctorDetail from './pages/DoctorDetail.jsx'
import CisitRecord from './pages/CisitRecord.jsx'
//import { Router, Route, hashHistory } from 'react-router'
import { BrowserRouter, Route } from 'react-router-dom';
ReactDom.render(
    <BrowserRouter>
        <div>
            <Route path="/index" component={index}/>          
            <Route path="/me" component={Me}/>   
            <Route path="/healthlist" component={HealthList}/>   
            <Route path="/doctorlist" component={DoctorList}/>   
            <Route path="/sickhistory" component={SickHistory}/>   
            <Route path="/feerecord" component={FeeRecord}/>   
            <Route path="/visitrecord" component={VisitRecord}/>  
            <Route path="/identityconfirm" component={IdentityConfirm}/> 
            <Route path="/login" component={Login}/> 
            <Route path="/register" component={Register}/>
            <Route path="/doctordetail" component={DoctorDetail}/>
            <Route path="/cisitrecord" component={CisitRecord}/>
        </div>
   </BrowserRouter>,
    document.getElementById('content')
);
